import request from "@/utils/request";

export function getUserListAPI(data) {
  return request({
    url: "/user/getList",
    method: "GET",
    params: data,
  });
}

export function addUserAPI(data) {
  return request({
    url: "/user/addUser",
    method: "POST",
    data
  });
}

export function updateUserAPI(data){
  return request({
    url:'/user/updateUser',
    method:'PUT',
    data
  })
}

export function getUserDetailAPI(id){
  return request({
    url:'/user/getDetail/'+id,
    method:'GET',
  })
}

export function deleteUserAPI(ids){
  return request({
    url:'/user/deleteUser/'+ids,
    method:'DELETE',
  })
}